<div class="content">
	<ul class="breadcrumb">
		<li>
			<i class="fa fa-home"></i>
			<li>信息维护</li>
		</li>
		<li>
			<a href="javascript:void(0)" ui-sref="/.staffList">人员档案</a>
		</li>
		<li>人员管理编辑</li>
	</ul>
	<div class="box">
		<ng-form class="formgroup" name="serForm">
			<div class="formrow">
				<label class="labtext-left"><sup class="required-flag">*</sup>服务单位</label>
				<input type="text"  ng-model="data.serInstName" maxlength="20" placeholder="请选择服务单位" ng-click="choiceServiceInstId()" required="required" readonly="readonly"/>				
			</div>
			<div class="formrow">
				<label class="labtext-left"><sup class="required-flag">*</sup>姓名</label> <input type="text"  ng-model="data.realName"  maxlength="20" placeholder="请输入人员姓名" required="required"/>
			</div>
			<div class="formrow">
				<label class="labtext-left"><sup class="required-flag">*</sup>工种</label>
				<input type="text" ng-model="data.workTypeName" required="required" readonly="readonly"/>	
			</div>
			<div class="formrow">
				<label class="labtext-left"><sup class="required-flag">*</sup>身份证号</label> <input type="text"  ng-model="data.idNo" maxlength="18" placeholder="请输入身份证号码" required="required"/>
			</div>
			<div class="formrow">
				<label class="labtext-left">电话</label> <input type="text"  ng-model="data.phone" maxlength="20" placeholder="请输入电话号码"/>
			</div>
			<div class="formrow">
				<label class="labtext-left"><sup class="required-flag">*</sup>性别</label>
				<select ng-model="data.sex" required="required">	
					<option value="">请选择</option>
					<option value="1">男</option>
					<option value="2">女</option>
				</select>
				<label class="labtext-left" style="width:80px">生日</label> <input type="text" id="startRegDate" style="width:110px" class="startdate" onchange="" onfocus="MyDatePicker()" ng-model="data.birthday" />
			</div>		
			<div class="formrow">
				<label class="labtext-left">地址</label> <input type="text"  ng-model="data.address" maxlength="255" placeholder="请输入地址信息"/>
			</div>
			<div class="formrow">
				<label class="labtext-left"><sup class="required-flag">*</sup>人员性质</label>
				<select ng-model="data.personType" required="required">	
					<option value="">请选择</option>
					<option value="1">在编</option>
					<option value="2">加盟</option>
				</select>
				<label class="labtext-left" style="width:80px">入职日期</label> <input type="text" id="startRegDate" style="width:110px" class="startdate" onchange="" onfocus="MyDatePicker()" ng-model="data.entryDate" />
			</div>
			<div class="formrow">
				<label class="labtext-left"><sup class="required-flag">*</sup>工作状态</label>
				<select ng-model="data.jobStatus" required="required">	
					<option value="">请选择</option>
					<option value="1">在职</option>
					<option value="2">离职</option>
				</select>
				<label class="labtext-left" style="width:80px" ng-if="data.jobStatus==2">离职日期</label> <input ng-if="data.jobStatus==2" type="text" id="startRegDate" style="width:110px" class="startdate" onchange="" onfocus="MyDatePicker()" ng-model="data.leaveDate" />
			</div>		
			<div class="fllab">
				<input type="submit" class="submit" value="保存" ng-click="save()" ng-disabled="serForm.$invalid" />
			</div>
		</ng-form>
	</div>
</div>
<!--弹出层-->
<script type="text/ng-template" id="instChoice.html"> 
<div class="content" style="margin:0;">
	<div class="box">
		<div class="filterForm">
			<ul class="clearfix">
				<li>单位名称：<input type="text" placeholder="请输入单位名称" ng-model="data.instName"></li>				
				<li>所属公司：
					<select ng-model="data.instSysId">	
						<option value="">全部</option>
						<option ng-repeat="item in sysList" value="{{item.id}}">{{item.instSysName}}</option>
					</select>
				</li>
				<li>类型：
					<select ng-model="data.instType">	
						<option value="">全部</option>
						<option value="1">医院</option>
						<option value="2">社区</option>
					</select>
				</li>
				<li><button type="button" class="searchbtn" ng-click="query()"><i class="fa fa-search"></i>&nbsp查询</button></li>
			</ul>
		</div>
		<div class="signList">
			<table class="tablelist" style="min-width: auto;">
				<thead>
					<tr>
						<th class="cell-text">名称</th>
						<th class="cell-number">类型</th>
						<th class="cell-number">所属公司</th>
						<th class="cell-number">地区</th>
						<th class="cell-text">地址</th>
						<th class="cell-number">操作</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="list in instList">
						<td class="cell-text">{{list.instName}}</td>
						<td class="cell-number">{{list.instType |InstTypeFilter}}</td>
						<td class="cell-number">{{list.instSysName}}</td>
						<td class="cell-number">{{list.instRegion}}</td>
						<td class="cell-text">{{list.instAddr}}</td>
						<td class="cell-number">
							<button type="button" class="btn btn-success" ng-click="choice(list)">
								<i class="fa fa-check-square"></i>&nbsp选择
							</button>							
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
	<div class="defaultPage" ng-show="instList== null">
		<img src="img/nodata.png" /> <span>暂无数据</span>
	</div>
	<uib-pagination total-items="pagerConf.totalItems" ng-model="pagerConf.currentPage" max-size="pagerConf.maxSize" first-text="第一页" previous-text="上一页" next-text="下一页" last-text="最后页" boundary-links="true"></uib-pagination>
</div>
</script>